package com.eimf.saf.common.dao;

import org.springframework.stereotype.Repository;

import com.eimf.saf.base.dao.BaseDao;
import com.eimf.saf.common.entity.AccessLog;

/**
 * @author eden
 * @date 2013-11-16 下午2:27:20
 * @Description: 用户访问日志持久层
 */
@Repository
public class AccessLogDao extends BaseDao<AccessLog>
{

    public String addPreLog(final AccessLog accessLog)
    {
        return (String) super.getSqlMapClientTemplate().insert("AccessLogMap.addPreLog", accessLog);

    }

    public void updPostLog(final AccessLog accessLog)
    {
        super.getSqlMapClientTemplate().update("AccessLogMap.updPostLog", accessLog);
    }

}
